Web page form, click submit, and e-mails to me?

I want to create a form on my web site for potential customers to fill out, click "submit", and is then e-mailed to me. Is this possible in iweb?

imac, Mac OS X (10.6.2)

Posted on Jun 26, 2011 12:17 PM

Reply
5 replies

Jun 28, 2011 5:56 AM in response to pattieboyd

Here is what I did for my website http://www.pusatbahasa.org/pb/contact_us.html.


First you have to create a php file and upload it to your server through cPanel or PHP clienct (but not through iWeb). Put the file in public_html, do not put it in folder you created using iweb becasue it will be deleted when you republish the site. you should be able to access the file in "www.yourdomain.com/contact-us.php". Here I attach the file I created, You should change "your-email-address@yahoo.com" you your own email address becasue the form will be sent to that email. Later, you can mess around with it. try changing things. You can edit this file using text editor like Text Wrangler. Download it here: http://www.barebones.com/products/textwrangler/



DOWNLOAD: http://www.pusatbahasa.org/iweb/contact-us.php (To download, right click on the link and "Save as" or "Save the Link as")

...

Secondly, you should create the form in iWeb using html snippet. Here I attach the code, open it using textwrangler, copy the content and paste it into your HTML Snippet. You should change the url for the file "contact-us.php" according to where you put it in your hosting. In my case I put it in "http://www.pusatbahasa.org/contact-us.php" Make sure to change that.
DOWNLOAD: http://www.pusatbahasa.org/iweb/form.php (To download, right click on the link and "Save as" or "Save the Link as")

....

TROUBLESHOOTING.

If the email is not sent to the email address you specified after you do the test, try to contact your hosting provider and tell them that "mail()" does not work. However, you need to make sure that your hosting support php first. Free hosting usually doesnt. MobileMe doesnt either.

Hope it Helps,

Faisal

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Web page form, click submit, and e-mails to me?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.